# 设计一个类，属性：半径
import math


class Circle:
    __radius = 0.0

    def getRadius(self):
        return self.__radius

    def setRadius(self, radius):
        self.__radius = radius

    def __init__(self, radius):
        self.__radius = radius

    # 得到周长
    def get__perimeter(self):
        return math.pi * self.__radius * 2

    # 得到面积
    def get__area(self):
        return math.pi * math.pow(self.__radius, 2)


c1 = Circle(2)
print(f"周长：{c1.get__perimeter()}")
print(f"面积：{c1.get__area()}")
c2 = Circle(3)
print(f"周长：{c2.get__perimeter()}")
print(f"面积：{c2.get__area()}")
